﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="load_table_player_added.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Events.load_table_player_added" %>

<%@ Import Namespace="DataAccess" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<body>
    <tr class="w3-teal">
        <td style="padding: 0.8% 0.5%">Ảnh</td>
        <td style="padding: 0.8% 0.5%">Tên đăng nhập</td>
        <td style="padding: 0.8% 0.5%">Tên đội</td>
        <td style="padding: 0.8% 0.5%">Đổi tên đội</td>
    </tr>
    <%
        string player = Request.QueryString["player"];
        if (player != "")
        {
            string[] split = player.Split(',');
            for (int i = 0; i < split.Length - 1; i++)
            {
                var get_player = new TblUserController().FetchAll().Single(x => x.UserId == int.Parse(split[i]));
    %>
    <tr style="border-bottom: solid 1px #ddd">
        <td style="padding: 0.8% 0.5%">
            <img src="../Content/avatar/<%=get_player.Avatar %>" style="width: 50px; height: 50px" class="w3-circle" /></td>
        <td style="padding: 0.8% 0.5%"><%=get_player.UserName %></td>
        <td style="padding: 0.8% 0.5%"><%=get_player.FullName %></td>
        <td style="padding: 0.8% 0.5%"><i onclick="btn_change_name(<%=get_player.UserId %>,'<%=get_player.FullName %>')" style="cursor: pointer" class="fa fa-user"></i></td>
    </tr>
    <%
            }
        }
    %>
</body>
</html>
